package cn.shopifymall.springboot.config;

import cn.shopifymall.springboot.pojo.Pet;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author 孤风雪影
 * @Email gitee.com/efairy520
 * @Date 2024/12/29 5:02
 * @Version 1.0
 *
 * 配置类自己也会放进容器：被CGLIB代理
 * cn.shopifymall.springboot.config.MyConfig$$EnhancerBySpringCGLIB$$f4aa5a09@ca66933
 */
@Configuration
public class MyConfig {

    @Bean
    public Pet pet() {
        return new Pet("cat", 3);
    }
}
